# main.py（纯UI启动版，无任何多余代码）
import sys
from PyQt5.QtWidgets import QApplication
from ui.main_window import MainWindow
from PyQt5.QtGui import QFont  # 确保导入了QFont


if __name__ == "__main__":
    app = QApplication(sys.argv)
    app.setFont(QFont("SimHei"))  # 先创建QFont对象，再设置字体
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())